Skip to content

Optionally report on lack of coverage#2654

Merged
jennybc merged 6 commits into
mainfrom
zero-coverage
Feb 10, 2026
Merged

Optionally report on lack of coverage#2654
jennybc merged 6 commits into
mainfrom
zero-coverage

Conversation

@hadley

@hadley hadley commented Jan 22, 2026

Copy link
Copy Markdown
Member

And use that display for LLMs and in non-interactive contexts.

It may have been lazy to not deprecate show_report, but I just can't imagine anyone is actually using it. Let me know if you think I'm wrong.

Fixes #2632

And use that display for LLMs and in non-interactive contexts.

It may have been lazy to not deprecate `show_report`, but I just can't imagine anyone is actually using it. Let me know if you think I'm wrong.

Fixes #2632
@hadley hadley requested a review from jennybc January 22, 2026 16:49
Comment thread tests/testthat/test-test.R Outdated
expect_equal(report_default(NULL), "zero")

withr::local_options(rlang_interactive = TRUE)
expect_equal(report_default(NULL), "html")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test fails when claude runs it, because the behaviour of report_default() actually changes when is_llm() is true 😬

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆

@jennybc jennybc merged commit 78a4785 into main Feb 10, 2026
12 checks passed
@jennybc jennybc deleted the zero-coverage branch February 10, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zero coverage helper

2 participants